package com.example.merchantdemo.paymentstart.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class QueryMatchingTotalPriceRequest {

    @NotEmpty(message = "商户apppid不能为空")
    private String merchantId;

    @NotEmpty(message = "币种名称不能为空")
    private String coinName;

    @NotEmpty(message = "法币名称不能为空")
    private String currencyName;

    @NotEmpty(message = "待匹配数量不能为空")
    private String matchAmount;

    /**
     * 待匹配金额(若为按数量匹配，此字段传0)
     */
    @NotEmpty(message = "待匹配金额不能为空")
    private String matchPrice;

    /**
     * 交易类型(1为按数量，2为按金额)
     */
    @NotNull(message = "交易类型不能为空")
    private Integer tradeType;

    @NotEmpty(message = "支付产品代码不能为空")
    private String paymentProductCode;

    @NotNull(message = "请求时间戳不能为空")
    private Long requestTimestamp;

    @NotEmpty(message = "请求签名不能为空")
    private String merchantSign;

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getCoinName() {
        return coinName;
    }

    public void setCoinName(String coinName) {
        this.coinName = coinName;
    }

    public String getCurrencyName() {
        return currencyName;
    }

    public void setCurrencyName(String currencyName) {
        this.currencyName = currencyName;
    }

    public String getMatchAmount() {
        return matchAmount;
    }

    public void setMatchAmount(String matchAmount) {
        this.matchAmount = matchAmount;
    }

    public String getPaymentProductCode() {
        return paymentProductCode;
    }

    public void setPaymentProductCode(String paymentProductCode) {
        this.paymentProductCode = paymentProductCode;
    }

    public Long getRequestTimestamp() {
        return requestTimestamp;
    }

    public void setRequestTimestamp(Long requestTimestamp) {
        this.requestTimestamp = requestTimestamp;
    }

    public String getMerchantSign() {
        return merchantSign;
    }

    public void setMerchantSign(String merchantSign) {
        this.merchantSign = merchantSign;
    }

    public String getMatchPrice() {
        return matchPrice;
    }

    public void setMatchPrice(String matchPrice) {
        this.matchPrice = matchPrice;
    }

    public Integer getTradeType() {
        return tradeType;
    }

    public void setTradeType(Integer tradeType) {
        this.tradeType = tradeType;
    }
}
